<template>
  <div>
      <h1>这是子bb的页面</h1>
      <p>{{text1}}</p>
  </div>
</template>

<script>
import eventBus from '@/eventBus/index.js'
export default {
  created(){
        eventBus.$on('xiaoming',(data)=>{
            console.log(data);
            this.text1=data
        })
    },
  data(){
    return {
      text1:''
    }
  }
}
</script>

<style scoped>
h1{
    font-size:0.2rem
}
p{
  font-size:0.2rem
}
</style>